import request from '@/utils/request'

// 查询prescript列表
export function listPrescript(query) {
  return request({
    url: '/drugs/prescript/list',
    method: 'get',
    params: query
  })
}

// 查询prescript详细
export function getPrescript(id) {
  return request({
    url: '/drugs/prescript/' + id,
    method: 'get'
  })
}

// 新增prescript
export function addPrescript(data) {
  return request({
    url: '/drugs/prescript',
    method: 'post',
    data: data
  })
}

// 修改prescript
export function updatePrescript(data) {
  return request({
    url: '/drugs/prescript',
    method: 'put',
    data: data
  })
}

// 删除prescript
export function delPrescript(id) {
  return request({
    url: '/drugs/prescript/' + id,
    method: 'delete'
  })
}
